import request from '@/utils/request'

// obs文件上传
export function postUpload(file) {
  console.log("postUpload", file);
  const formData = new FormData();
  formData.append('file', file);
  return request({
    url: '/api/obs/upload',
    method: 'post',
    data: formData,
    headers: {
      'Content-Type': 'multipart/form-data'
    },
  })
}
